package com.cloudcc.mobile.adapter;

import android.content.Context;
import android.util.Log;

import com.cloudcc.cloudframe.adapter.CommonAdapter;
import com.cloudcc.cloudframe.adapter.ViewHolder;
import com.cloudcc.mobile.R;
import com.cloudcc.mobile.entity.approval.TaskManagementModel;

public class TaskManagementAdapter extends CommonAdapter<TaskManagementModel> {
	public TaskManagementAdapter(Context mContext) {
		super(mContext);

	}

	@Override
	public void convert(ViewHolder holder, TaskManagementModel t) {
		holder.setText(R.id.task_management_name, t.getObjtype());
		holder.setText(R.id.task_management_from, t.getActor());
		holder.setText(R.id.task_management_desc, t.getComments());
		// Log.d("get111",t.getObjtype()+t.getActor()+"這是適配器裡面的最終數據"+t.getComments());
		holder.setText(R.id.task_management_date, t.getLastdate());
	}

	@Override
	public int getLayoutId() {
		// TODO Auto-generated method stub
		return R.layout.task_managementl_item;
	}
}
